import KoaRouter from "koa-router";
import User from "../models/User";

const router = new KoaRouter();

router.get("/getInfo", async (ctx) => {
  // const user = new User({
  //   name: "test1 new hahh111",
  //   email: "xpenchen@163.com",
  //   age: 31,
  // });
  // await user.save();
  // ctx.body = user;
  ctx.body = {
    name: "来自koa的数据本地",
  };
});

export default router;
